package com.wyl.controller

import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable

@Controller
class RestfulController {
    @GetMapping("/add/{a}/{b}")
    fun test(@PathVariable a: Int, @PathVariable b: Int, model: Model): String {
        model.addAttribute("msg", a + b)
        return "test"
    }
}